<template>
    <div>
        <h3>文章列表</h3>
        <el-button type="primary" @click="loadBlogs">加载文章列表</el-button>
        <el-input type="text"></el-input>
    </div>
</template>

<script>
    export default {
        name: 'ArticleList',
        data() {
            return {
                article: {
                    title: "",
                    content: "",
                    lables: "",
                    starts: 0
                },
                articleList: []
            }
        },
        methods: {
            loadBlogs () {
                let url = "/blog/find";
                this.getRequest(url).then(res => {
                    console.log(res);
                    console.log(res.data['blog']);
                })
            }
        }
    }
</script>

<style scoped>

</style>
